package cn.lizemin.demo;

import cn.lizemin.service.UserApi;
import cn.lizemin.service.UserController;
import cn.lzm.bootstrap.ProviderBootstrap;
import cn.lzm.model.ServiceRegisterInfo;
import com.google.common.collect.Lists;

/**
 * @author lzm
 * @Date 2024/11/6
 * @description 服务提供者示例
 */
public class TcpProviderExampleV2 {

    /**
     * 启动服务器
     */
    public static void main(String[] args) {
        ServiceRegisterInfo<UserApi> registerInfo = new ServiceRegisterInfo<>(UserApi.class.getName(), UserController.class);
        ProviderBootstrap.init(Lists.newArrayList(registerInfo));

    }

}
